<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<script src="${pageContext.request.contextPath}/dwz/js/dwz.ui.js"
	type="text/javascript"></script>
<script type="text/javascript">
	
</script>


<form id="pagerForm" method="post" action="equSwitch_switchList.action?equNos=${equNos}">
	<input type="hidden" name="pageNum" value="1" /> 
	<input type="hidden" name="numPerPage" value="${numPerPage}" /> 
	<input type="hidden" name="equ.equType" value="${equ.equType }" /> 
	<input type="hidden" name="equ.equNo" value="${equ.equNo}" />
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="equSwitch_switchList.action"
		method="post">
		<div class="searchBar">

			<table class="searchContent">
				<tr>
					<td>设备编号：<input type="text" name="equSwitch.equNo" value="${equSwitch.equNo eq 0 ? "" : equSwitch.equNo }"/>
					</td>
					<td><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div></td>
				</tr>
			</table>
		</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="delete" href="equSwitch_delete.action"
				target="selectedTodo" rel="swhIds" postType="string" title="确定要废弃吗?"><span>废弃</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>

	<table class="table" width="100%" layoutH="112">
		<thead>
			<tr>
			<th width="30" align="center">
			<input type="checkbox" class="checkboxCtrl" name="all" group="swhIds" /></th>
				 <th width="80" align="center">学校</th>
				<th width="60" align="center">设备编号</th>
				<th width="80" align="center">设备启用时间</th>
				<th width="50" align="center">设备禁用时间</th>
				<th width="50" align="center">是否启用</th>
				<th width="80" align="center">备注信息</th>
				<th width="80" align="center">创建时间</th>
				<th width="80" align="center">创建人员</th>
			</tr>
		</thead>
		<tbody id="listBody">
			<c:forEach items="${recordList}" var="equ">
				<tr target="sid_user" rel="${equ.swhId}">
				<td><input type="checkbox" name="swhIds" value="${equ.swhId}" /></td>
					<td>${eqs[equ.equNo].hsSchoolInfo.sclName }</td>
					<td>${equ.equNo }</td>
					<td><fmt:parseDate value="${equ.equOpenTime }" var="dateStart"
							pattern="HHmm" /> <fmt:formatDate value="${dateStart}"
							pattern="HH:mm" /></td>
					<td><fmt:parseDate value="${equ.equEndTime }" var="dateEnd"
							pattern="HHmm" /> <fmt:formatDate value="${dateEnd}"
							pattern="HH:mm" /></td>
					<td><c:choose>
							<c:when test="${equ.relationStatusFlag eq 0 }">废弃</c:when>
							<c:when test="${equ.relationStatusFlag eq 1 }">正常</c:when>
						</c:choose></td>
					<td title="${equ.remark }">${equ.remark }</td>
					<td><fmt:parseDate value="${equ.createTime }" var="date"
							pattern="yyyyMMddHHmmss" /> <fmt:formatDate value="${date}"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
					<td>${users[equ.createOperId ].isuName }</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<%@ include file="/WEB-INF/jsp/public/panelBar.jsp"%>
</div>
